package cn.luckdou.system.model.inside_error;

import org.apache.commons.lang.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 500信息汇总
 * </p>
 *
 * @author Dadou
 * @since 2018-01-10
 */
@TableName("tb_inside_error")
public class InsideError extends Model<InsideError> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户请求地址
     */
	private String ip;
    /**
     * 报错误的类
     */
	private String eclass;
    /**
     * 报错类的方法
     */
	private String emethod;
    /**
     * 类多少行代码处异常
     */
	private Integer linenumber;
    /**
     * 用户主键
     */
	@TableField("huser_id")
	private Long huserId;
    /**
     * 用户agent
     */
	private String agent;
    /**
     * 错误原因
     */
	private String cause;
    /**
     * 错误发生时间
     */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date time;
    /**
     * 状态 1正常 0停用
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("created_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
    /**
     * 修改时间
     */
	@TableField("updated_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedTime;
    /**
     * 删除时间
     */
	@TableField("deleted_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date deletedTime;
    /**
     * 编辑人
     */
	@TableField("created_editor")
	private String createdEditor;
    /**
     * 更新人
     */
	@TableField("updated_editor")
	private String updatedEditor;
	/**
	 * 无参构造方法
	 */
	public InsideError(){
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip =StringUtils.isNotBlank(ip)?ip:null;
	}

	public String getEclass() {
		return eclass;
	}

	public void setEclass(String eclass) {
		this.eclass =StringUtils.isNotBlank(eclass)?eclass:null;
	}

	public String getEmethod() {
		return emethod;
	}

	public void setEmethod(String emethod) {
		this.emethod =StringUtils.isNotBlank(emethod)?emethod:null;
	}

	public Integer getLinenumber() {
		return linenumber;
	}

	public void setLinenumber(Integer linenumber) {
		this.linenumber = linenumber;
	}

	public Long getHuserId() {
		return huserId;
	}

	public void setHuserId(Long huserId) {
		this.huserId = huserId;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent =StringUtils.isNotBlank(agent)?agent:null;
	}

	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause =StringUtils.isNotBlank(cause)?cause:null;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Date getDeletedTime() {
		return deletedTime;
	}

	public void setDeletedTime(Date deletedTime) {
		this.deletedTime = deletedTime;
	}

	public String getCreatedEditor() {
		return createdEditor;
	}

	public void setCreatedEditor(String createdEditor) {
		this.createdEditor =StringUtils.isNotBlank(createdEditor)?createdEditor:null;
	}

	public String getUpdatedEditor() {
		return updatedEditor;
	}

	public void setUpdatedEditor(String updatedEditor) {
		this.updatedEditor =StringUtils.isNotBlank(updatedEditor)?updatedEditor:null;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
